package com.fanshilz.flower2025.apps.wechatminiapp.project.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

@Data
public class WechatProjectSearchReq {

    @Schema(description = "第几页 从1开始")
    @NotNull
    @Min(1)
    private Integer current;

    @Schema(description = "每页展示长度")
    @NotNull
    @Min(1)
    private Integer size;

    @Schema(description = "0=综合 1=最新发布 2=要价从高到低 3=要价从低到高 必填")
    @NotNull
    private Integer sortType;

    @Schema(description = "搜索框的值 名称")
    private String projectShortName;

    @Schema(description = "行业 多选 values [0, 1, 2] 数组")
    private List<Integer> projectIndustrys;

    @Schema(description = "类型 多选 [0, 1, 2]")
    private List<Integer> projectTypes;

    @Schema(description = "省份code")
    private String projectProvinceCode;

    @Schema(description = "城市code")
    private String projectCityCode;

    @Schema(description = "区/县code")
    private String projectAreaCode;

    @Schema(description = "成立时间 0=1-2年 1=2-5年 2=5-10年 3=10年以上")
    private Integer establishmentTimeType;

    @Schema(description = "员工人数 0=50人以下 1=50-99人 2=100-999人 3=1000人以上")
    private Integer employeesNumberType;

    @Schema(description = "营业收入 0=200w以下 1=200-499万 2=500-3000w 3=3000-5000w 4=5000-1亿 5=1亿以上")
    private Integer operatingIncomeType;

    @Schema(description = "营业收入 手动填写")
    private Double operatingIncomeValue;

    @Schema(description = "利润 0=200w一下 1=200-499w 2=500-3000w 3=3000-5000w 4=5000-1亿 5=1亿以上")
    private Integer profitType;

    @Schema(description = "利润 最小值")
    private Double profitMin;

    @Schema(description = "利润 最大值")
    private Double profitMax;

}
